<?php
//数据库设置
$_ip="localhost";
$_user="root";
$_pass="zyb940708";
$_dbname="wechat_cet";
//数据库连接参数，不要动！
$_conn=mysqli_connect($_ip,$_user,$_pass,$_dbname) or die;//('不能连接服务器'.mysql_error());  

if (!$_conn) {   
	printf("Can't connect to MySQL Server. Errorcode: %s ", mysqli_connect_error());   
	exit;   
}

mysqli_query($_conn, "set names utf8");
?>